package com.qidianit.mes.pro.mapper;

import com.qidianit.mes.pro.vo.WorkflowProcessRelation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/18 - 16:32
 */
@Mapper
public interface WorkFlowProcessMapper {
  ArrayList<WorkflowProcessRelation> queryProcessCompositionsByWorkflowIdWithPaging(@Param("page") Integer page,
                                                                                   @Param("size") Integer size,
                                                                                   @Param("workflowId") Integer workflowId);


  ArrayList<WorkflowProcessRelation> queryProcessCompositionsByWorkflowId(Integer workflowId);
  /*
    新增工序
   */
  int addWorkflowProcessRelation(WorkflowProcessRelation workflowProcessRelation);

  /*
  根据id产讯工艺工序组成
   */
  WorkflowProcessRelation getWorkflowProcessRelationById(Integer id);

  /*
  编辑工艺的工序组成
   */
  int updateWorkflowProcessRelation(WorkflowProcessRelation workflowProcessRelation);

  /*
  根据工艺的工序组成编号删除单个工序组成
   */
  int deleteWorkflowProcessRelationById(Integer id);



}
